<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<script type="text/javascript">

function checkEmpty()
{

	v = document.getElementById("upload").value ;
	if ((v == "")) {
    	alert("Upload the file.");
    	 return false;        
    }
	
}
	
</script>
<s:head />
</head>
 
<body>
 
<s:form action="resultAction" namespace="/" 
method="POST" enctype="multipart/form-data">
 
<s:file name="fileUpload" label="Select a File to upload" size="40" id="upload"/>
 
<s:submit value="submit" name="submit" />
 
</s:form>
 
</body>
</html>
 